package com.example.newstest.until;

import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.Locale;

/**
 * Created by Administrator on 2017/1/18.
 */
public class ChangeTime {

    public static  String changeCurrentTimeMillis(String time){
        SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd hh:mm:ss", Locale.CHINA);
        try {
            Date date = sdf.parse(time);
            String times = date.getTime()+"";
            return  times;
        } catch (ParseException e) {
            e.printStackTrace();
        }
        return  null;
    }
}
